<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
  <title>Page List</title>
  <link href="css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>

  <%@ include file="head.jspf" %>

  <div id="header">
    <h2>Page List</h2>
  </div>

  <form action="account" method="post">
    <ol>
	  <div id="users">
	    <ul>
	    <c:forEach var="user" items="${users}">
          <li>
            <c:if test="${user.email != currentUserEmail}"><input type="checkbox" name="friend" value="${user.email}" /></c:if>
            <a href="show?email=${user.email}">${user.name}</a>
          </li>
	    </c:forEach>
	    </ul>
	  </div>
    </ol>
    <input type="submit" name="friendsubmit" value="Add Friends" />
  </form>

  <%@ include file="foot.jspf" %>

</body>
</html>